package com.woniu.waste.client;

import com.woniu.config.FeignConfig;
import com.woniu.zsd.commons.core.model.Result;
import com.woniu.zsd.waste.entity.WasteType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "zsd-waste",configuration = FeignConfig.class)
public interface WasteClient {
    @GetMapping("/waste-type/getWasteTypeById/{id}")
    Result<WasteType> getWasteTypeById(@PathVariable("id") Integer id);

}
